Printing Floating - Point
نویسندگان
چکیده
This paper presents a fast and accurate algorithm for printing oating-point numbers in both free-and xed-format modes. In free-format mode, the algorithm generates the shortest, correctly rounded output string that converts to the same number when read back in, accommodating whatever rounding mode the reader uses. In xed-format mode, the algorithm generates a correctly rounded output string using special # marks to denote insigniicant trailing digits. For both modes, the algorithm employs a fast estimator to scale oating-point numbers eeciently.
منابع مشابه
Easy Accurate Reading and Writing of Floating-Point Numbers
Presented here are algorithms for converting between (decimal) scientific-notation and (binary) IEEE-754 double-precision floating-point numbers. These algorithms are much simpler than those previously published. The values are stable under repeated conversions between the formats. The scientific representations generated have only the minimum number of mantissa digits needed to convert back to...
متن کاملEfficient and Accurate Implementation of Image Scaling in the Frequency Domain
Image scaling, particularly by powers of two, has previously been shown as implemented efficiently by direct manipulation of coefficients in the frequency domain. Typically, these coefficients are computed via the 8x8 DCT, or other block transforms, for their compressed storage in popular standard formats such as JPEG or MPEG. Many existing implementations of these image scaling algorithms use ...
متن کاملA fast floating-point square-rooting routine for the 8080/8085 microprocessors
Square-root is a function for which numerous numerical methods have been developed. In most math packages for microprocessors, simple iterative methods have been used, as no special demands for speed — nor even for accuracy in some cases are expected: e.g. in [ l ] and [2] the execution time of square-rooting is approx. 2-5 times longer than that of multiplication, and in [3] a quintuple error ...
متن کاملBuoyancy Optimization for Computational Fabrication
This paper introduces a design and fabrication pipeline for creating floating forms. Our method optimizes for buoyant equilibrium and stability of complex 3D shapes, applying a voxel-carving technique to control the mass distribution. The resulting objects achieve a desired floating pose defined by a user-specified waterline height and orientation. In order to enlarge the feasible design space,...
متن کامل3-D Printing Technique to Aid Surgical Planning in Treatment of Floating Shoulder Injury: A Case Report
The term ‘‘floating shoulder ’’ was introduced by Herscovici in 1992 [1], charactered by ipsilateral scapular neck and clavicular shaft fractures. The definition of ‘floating shoulder’’ has been criticized by many authors, and the widely accepted definition is a double disruption of the superior suspensory shoulder complex (SSSC) [2-5]. SSSC is a bony/soft tissue structure, playing important ro...
متن کامل